package lv.accenture.ex06;

import java.util.List;

public class Bookmark {
	
	private String url;
	private String title;
	private String description;
	
	private String uid;

	private String creator;
	private String year;
	private List<String> tags;
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		
		sb.append("{\ntype : \"Bookmark\",\n");
		
		sb.append("label : \"" + title + "\",\n");
		
		sb.append("url : \"" + url + "\",\n");
		
		if (description == null) {
			description = "";
		}
		
		sb.append("description : \"" + description + "\",\n");
		
		sb.append("uid : \"" + uid + "\",\n");
		
		sb.append("creator : \"" + creator + "\",\n");
		
		sb.append("year : \"" + year + "\",\n");
		
		
		sb.append("tags : \"" + tags + "\"\n");
		
		sb.append("}");

		return sb.toString();
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public List<String> getTags() {
		return tags;
	}
	public void setTags(List<String> tags) {
		this.tags = tags;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
}
